package cn.pinming.test;

import cn.pinming.pmsuite.api.ApiResult;
import cn.pinming.pmsuite.utils.JwtUtils;
import cn.pinming.pmsuite.web.security.UserAccount;
import io.modelcontextprotocol.autoconfigure.utils.JsonParser;
import io.modelcontextprotocol.spec.McpSchema;

public class JsonUtils {

    public static void main(String ... args){

        String token="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJCRnFQTDRrV0xZcz0iLCJ1c2VybmFtZSI6InN5c3RlbSIsIm5pY2tuYW1lIjoiXHU3Y2ZiXHU3ZWRmXHU3NTI4XHU2MjM3Iiwic3VwZXIiOiIxIiwic2lkIjoiOGJkMzJiYTctODY5MS00MTE3LThlM2UtM2ViZGI2MGNjYTQ5IiwibG9naW5fdHlwZSI6IjAiLCJleHAiOjE3NDk0NDE0MjJ9.0x5w7P-XPyH2--VEDDzfaaaiLxwp1QKTcPVenpdTRLo";
        ApiResult<UserAccount> result= JwtUtils.parseJwt(token,"pm20190115","0497c88401c94c75911b5045d7355a7a");
        System.out.println(result.getData().getDisplayName());
    }
}
